import { LanguageTypeString, QuestionType } from '@/components/question/typing';
import { defineComponent, PropType } from 'vue';
import CommonAttributeComponent from '../common-attribute-component';

export default defineComponent({
  props: {
    question: {
      type: Object as PropType<QuestionType>,
    },
    language: {
      type: String as PropType<LanguageTypeString>,
      required: true,
    },
  },

  setup(props) {
    const { language, question } = props;
    return () => {
      return (
        <div class="start-page-question-attribute-panel">
          <CommonAttributeComponent
            question={question}
            language={language}
            showMustAnswer={false}
          />
        </div>
      );
    };
  },
});
